#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"

void test01()
{
	int a[] = { 4,6,2,1,5,8,2,9 };
	Heap hp;
	HeapInit(&hp);
	for (int i = 0; i < sizeof(a) / sizeof(a[0]); i++)
	{
		HeapPush(&hp, a[i]);
	}

	printf("%d\n", HeapSize(&hp));

	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}

	HeapDestory(&hp);
}

int main()
{
	test01();
	return 0;
}